TARGET = sc_example
TESTCASE = sc_fifo
SRC = $(TARGET).cpp
RUN = $(TARGET).sim

LDFLAGS = -lsystemc

all: $(RUN)

$(TARGET).sim: $(SRC)
	g++ --std=c++17 -lsystemc $(SRC) -o $@
	@echo "Compilation Done!"

sim: $(RUN)
	./$(RUN) $(TESTCASE)
	@echo "Simulation Done!"

clean:
	rm -f *.sim *.o *.vcd *.view
	@echo "Clean Done!"

.PHONY: all clean
